//
//  UIView+Method.h
//  SegmentDemo
//
//  Created by 塔兮 on 2022/4/11.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIView (Method)

/// 当前所在控制器
- (UIViewController *)viewController;

/// 移除所有子视图
- (void)removeAllSubViews;

/// 绘制圆角
- (void)setCornerRadius:(CGFloat)radius;

/// 绘制边框带圆角
- (void)setBorderWidth:(CGFloat)width color:(UIColor *)color radius:(CGFloat)radius;

@end

NS_ASSUME_NONNULL_END
